﻿using FunArts.EasyDevOps.Shared.Models.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunArts.EasyDevOps.Shared.Models.SshClient.Command
{
    /// <summary>
    /// 查看文件内容命令
    /// </summary>
    public class CatCommand:ILinuxCommand
    {
        /// <summary>
        /// 文件路径
        /// </summary>
        public string FilePath { get; set; } 

        public CatCommand(string filePath)
        {
            FilePath = filePath;
        }

        public string BuildCommand(SystemVersionTypeEnum systemVersionType)
        {
            return $"cat {FilePath}";
        }
    }
}
